#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "game.h"

int main(int argc, char** argv)
{
	auto exe_path = std::filesystem::path(argv[0]).parent_path();
	Game game(exe_path);
	if (!game.init())
		return -1;
	if (!game.createWindow(800, 800))
		return -2;
	if (!game.initResources())
		return -3;
	//运行
	game.exec();
	return 0;
}